package com.zc;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 1.@SpringBootApplicatio注解表名当前项目为SpringBoot工程，以让SpringBoot框架通过该类启动整个应用
 * 2.启动类需要放在跟包路径下（com.zc），
 *   因为它会扫描controller和service以及mapper等一些组件，
 *   扫描完之后会放在spring/springboot容器中
 * 3、
 */

@SpringBootApplication
@MapperScan(basePackages = "com.zc.mapper")
@Slf4j
public class ZcSpringbootDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(ZcSpringbootDemoApplication.class, args);
        log.warn("ZcSpringbootDemoApplication Started !");
    }

}
